﻿using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace Hxsoft.AppV1.Admin.UserManage.Controls
{
	public partial class ChangePassword : BaseUserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			this.DataBind();
		}


		/// <summary>
		/// 属性 OldPassword
		/// </summary>
		public string OldPassword
		{
			get
			{
				if (String.IsNullOrEmpty(CtrlOldPassword.Text))
					return null;

				return Convert.ToString(CtrlOldPassword.Text);
			}
			set
			{
				if (value == null)
					CtrlOldPassword.Text = "";
				else
					CtrlOldPassword.Text = value.ToString();
			}
		}

		/// <summary>
		/// 属性 Password
		/// </summary>
		public string Password
		{
			get
			{
				if (String.IsNullOrEmpty(CtrlPassword.Text))
					return null;

				return Convert.ToString(CtrlPassword.Text);
			}
			set
			{
				if (value == null)
					CtrlPassword.Text = "";
				else
					CtrlPassword.Text = value.ToString();
			}
		}

		/// <summary>
		/// 属性 ConfirmPassword
		/// </summary>
		public string ConfirmPassword
		{
			get
			{
				if (String.IsNullOrEmpty(CtrlConfirmPassword.Text))
					return null;

				return Convert.ToString(CtrlConfirmPassword.Text);
			}
			set
			{
				if (value == null)
					CtrlConfirmPassword.Text = "";
				else
					CtrlConfirmPassword.Text = value.ToString();
			}
		}
	}
}